#!/bin/awk -f
# Synopsis: sesta esta.rep (need preceeding esta0 calculation -> esta.rep)
{i++;n[$2]++;p[$2]=p[$2]" "i}
END{
  for(i in n){j++;print p[i]," # "n[i],i};
  print "#  "j" independent tilings";
}

